package BookManagement.service;

import BookManagement.dao.SpendDao;
import BookManagement.domain.Spend;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
@Service("spendService")
public class SpendServiceImpl implements SpendService {
    @Autowired
    SpendDao spendDao;

    @Override
    public List<Spend> findUserSpend(HashMap<String, Object> map) {
        return spendDao.findUserSpend(map);
    }

    @Override
    public int newspend(Spend spend) {
        return spendDao.newspend(spend);
    }

    @Override
    public int findSpendCount(String username){
        return spendDao.findSpendCount(username);
    }

}
